interface OriginBingImage {
    images: BingImage[];
    tooltips: Tooltip;
}

interface Tooltip {
    loading: string;
    previous: string;
    next: string;
    walle: string;
    walls: string;
}

// bing 壁纸
export interface BingImage {
    startdate: string;
    fullstartdate: string;
    enddate: string;
    url: string;
    urlbase: string;
    copyright: string;
    copyrightlink: string;
    title: string;
    quiz: string;
    wp: boolean;
    hsh: string;
    drk: number;
    top: number;
    bot: number;
    hs: any[];
}

// unsplash 和 wallhaven 壁纸
export type BgImage = {
    id: string;
    h?: number;
    w?: number;
    raw: string; // 图片地址
    thumb: string; // 预览小图
}[];

// const url = 'https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1'
// const json = {
//     "images": [
//         {
//             "startdate": "20230520",
//             "fullstartdate": "202305200700",
//             "enddate": "20230521",
//             "url": "/th?id=OHR.EuropeanHoneybee_ROW6575584380_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
//             "urlbase": "/th?id=OHR.EuropeanHoneybee_ROW6575584380",
//             "copyright": "European honey bees in Sheffield, England (© Deborah Vernon/Alamy)",
//             "copyrightlink": "https://www.bing.com/search?q=european+honey+bee&form=hpcapt",
//             "title": "Info",
//             "quiz": "/search?q=Bing+homepage+quiz&filters=WQOskey:%22HPQuiz_20230520_EuropeanHoneybee%22&FORM=HPQUIZ",
//             "wp": true,
//             "hsh": "cb95c5462b913a589d19f86ff6a20f6a",
//             "drk": 1,
//             "top": 1,
//             "bot": 1,
//             "hs": []
//         }
//     ],
//     "tooltips": {
//         "loading": "正在加载...",
//         "previous": "上一个图像",
//         "next": "下一个图像",
//         "walle": "此图片不能下载用作壁纸。",
//         "walls": "下载今日美图。仅限用作桌面壁纸。"
//     }
// }
